using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.RuleEngine;

namespace BizTalk.ESB.Extensions.Validation.Helpers
{
    public class BREFactCreator : IFactCreator
    {
      private object[] BREFacts;
        
      public BREFactCreator()
      {
      }

      public object[] CreateFacts ( RuleSetInfo rulesetInfo )
      {
          BREFacts = new object[1];
          BREFacts.SetValue(new BREFactCreator(), 0);
          return BREFacts;
      }
      
      public Type[] GetFactTypes (RuleSetInfo rulesetInfo)
      {
         return null;
      }


      public DateTime ConvertStringToDateTime(string s)
      {
            DateTime dt;
            dt = DateTime.Parse(s);

            return dt;
      }
    }
}
